package com.wkf.truck.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 * 
 * </p>
 *
 * @author lxb
 * @since 2021-02-14
 */
@Data
@TableName("user")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 电话号
     */
    private String phone;

    /**
     * 生日
     */
    private String birthday;

    /**
     * 角色id
     */
    private Long roleId;

    /**
     * 货车id
     */
    private Long truckId;

    /**
     * 订单数量
     */
    private Integer orderNumber;

    /**
     * openId
     */
    private String openId;

    private Timestamp createTime;
}
